<?php
/**
 * Created by PhpStorm.
 * User: yucheng
 * Date: 2017/11/28
 * Time: 16:50
 */

namespace app\index\controller;
use think\Controller;
use think\facade\Config;

class Index extends Controller
{
	protected $layout = '';

	public function _initialize()
	{
		parent::_initialize();
	}

	//主页
	public function index(){

		dump([

			Config::get('test.typevvv')

		]);
//		Config::get('test.typevvv');
	}


//	public function index()
//	{
//		return $this->view->fetch();
//	}

	public function news()
	{
		$newslist = [];
		return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'http://www.fastadmin.net?ref=news']);
	}

}
